import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import '@/style/index.less'
import request from '@/utils/request.js'
import _ from 'lodash'
import store from './store'
import empowerDialog from '@/component/empowerDialog.vue'

Vue.config.productionTip = false

Vue.prototype.$_ = _ 

Vue.component('empowerDialog', empowerDialog)

App.mpType = 'app'

Vue.prototype.$http = {
  get (url, data) {
    return request(url, 'GET', data)
  },
  post (url, data) {
    return request(url, 'POST', data)
  }
}

const app = new Vue({
    ...App,
    store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return { app }
}
// #endif